<ion-view view-title="我的" hide-back-button="true">

	<ion-content style="background-color:#f5f5f5;">
		<div style="height: 150px;background-color: white;text-align: center;padding-top: 10px;" ng-click="accreditation()">
			<div>
				<div style="width: 80px;margin: 0 auto;height: 70px;">
					<img ng-if="userInfo.headPic!=null" ng-src="http://image.credit-manage.com/{{userInfo.headPic}}" width="80" height="80" style="border-radius: 50px;" />
					<img ng-if="userInfo.headPic==null" ng-src="img/my/head.png" width="80" height="80" />
					<img ng-if="userInfo.isCertificate==1" ng-src="img/my/icon-sm.png" width="18" style="position: relative;top:-20px;left:20px;" />
					<img ng-if="userInfo.isCertificate==0" ng-src="img/my/icon-s.png" width="18" style="position: relative;top:-20px;left:20px;" />
				</div>
			</div>
			<div style="margin-top: 15px;">
				<span ng-if="userInfo.nickName==null||userInfo.nickName==''">昵称未设置</span>
				<span ng-if="userInfo.nickName!=null&&userInfo.nickName!=''">{{userInfo.nickName}}</span>
			</div>
			<div ng-if="userInfo.isCertificate==1" style="padding-top:10px;"><button style="background: white;border: 1px solid #42bd55;border-radius: 10px;font-size:11px;" ng-click="editInfo()">编辑资料</button></div>
			<div ng-if="userInfo.isCertificate==0" style="padding-top:10px;"><button style="background: white;border: 1px solid #42bd55;border-radius: 10px;font-size:11px;" ng-click="goIsCertificate()">点击去实名</button></div>
		</div>

		<div class="list" style="height: 30px;background-color: white;line-height: 30px;border-bottom:1px solid #e3e3e3;">
			<a href="#/tab/my/gzList">
				<div style="float: left;width: 50%;text-align: center;line-height: 20px;height: 20px;margin-top:5px;">
					关注 {{gz}}
				</div>
			</a>
			<a href="#/tab/my/fsList">
				<div style="float: left;width: 50%;border-left: 1px solid #e3e3e3;height: 20px;margin-top:5px;text-align: center;line-height: 20px;">
					粉丝 {{fs}}
				</div>
			</a>
		</div>

		<div class="list">

			<a class="item item-icon-left item-icon-right" href="#/tab/my/capitalDetail" style="height: 53px;">
				<span class="icon icon-my-ye" style="color:blueviolet;font-size:30px;"></span> 
				<div style="float: left;width: 50%;">余额</div>
				<div style="float: left;width: 50%;text-align: right;color:#808080">{{balance}}</div>
				<i class="icon ion-ios-arrow-right"></i>
			</a>

			<a class="item item-icon-left" ng-click="recharge()">
				<span class="icon icon-my-cz" style="color:orangered;font-size:30px;"></span> 充值
			</a>

			<a class="item item-icon-left item-icon-right" href="#/tab/my/withDraw">
				<span class="icon icon-my-tx" style="color:blueviolet;font-size:30px;"></span> 提现
				<i class="icon ion-ios-arrow-right"></i>
			</a>

		</div>
		
		<div class="list">

			<a class="item item-icon-left item-icon-right" href="#/tab/my/borrowDuan">
				<span class="icon icon-my-jr" style="font-size:30px;"></span> 
				<div style="float: left;width: 50%;">借入</div>
				<!-- 正常 -->
				<div ng-if="isBreak==false && isBreak==false"  style="float: left;width: 50%;text-align: right;color:red;font-size:10px;"></div>
				 
				<!-- 借款有逾期-->
				<div ng-if="isBreak!=false && isRepay==false"  style="float: left;width: 50%;text-align: right;color:red;font-size:10px;"><img height="10" src="img/my/icon_yq.png"/></div>
				
				<!-- 有借款即将到期 -->
				<div ng-if="isRepay!=false && isBreak==false"  style="float: left;width: 50%;text-align: right;color:#808080;font-size:10px;"><img height="10" src="img/my/icon_hk.png"/></div>
				
				<!-- 借款有逾期和有借款即将到期 --->
				<div ng-if="isRepay!=false && isBreak!=false"  style="float: left;width: 50%;text-align: right;color:#808080;font-size:10px;"><img height="10" src="img/my/icon_yq.png"/></div>
				<i class="icon ion-ios-arrow-right"></i>
			</a>

			<a class="item item-icon-left item-icon-right" href="#/tab/my/loanDuan">
				<span class="icon icon-my-jc" style="font-size:30px;"></span> 
				借出
				<i class="icon ion-ios-arrow-right"></i>
			</a>

		</div>
		
		<div class="list">

			<a class="item item-icon-left item-icon-right" href="#/tab/my/investment">
				<span class="icon icon-my-tzq" style="color:blue;font-size:30px;"></span> 投资券
				<i class="icon ion-ios-arrow-right"></i>
			</a>

			<a class="item item-icon-left item-icon-right" href="#/tab/my/inviteCode">
				<span class="icon icon-my-yqm" style="color:orangered;font-size:30px;"></span> 邀请码
				<i class="icon ion-ios-arrow-right"></i>
			</a>

		</div>
		
		<div class="list">

			<a class="item item-icon-left item-icon-right" href="#/tab/my/msg">
				<span class="icon icon-my-xx" style="color:blue;font-size:30px;"></span> 消息中心
				<i class="icon ion-ios-arrow-right"></i>
			</a>

		</div>
		
		<div style="margin-right: 17px;margin-left: 17px;">
    		<button class="button button-block button-positive" ng-click='loginOut()'>退出当前帐号</button>
    	</div>
		
	</ion-content>
</ion-view>